//
//  AppDelegate.swift
//  XinLang
//
//  Created by 张辉 on 16/5/10.
//  Copyright © 2016年 张辉. All rights reserved.
//

import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?
 

    func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
        setUpAppearance()
        //初始化根控制器
       window = UIWindow(frame:UIScreen.mainScreen().bounds)
       window?.backgroundColor = UIColor.whiteColor()
        
       window?.rootViewController = MainViewController()
        
       window?.makeKeyAndVisible()
        
        
        return true
    }


}

extension AppDelegate{

  //设置外观
    func  setUpAppearance (){
    
        UINavigationBar.appearance().tintColor = UIColor.orangeColor()
    
    }

}

